<template>
  <transition name="Router-active">
     <!-- 将详细页组件的信息不保存元素状态就是网络不会只请求一个iid值 -->
    <keep-alive exclude="Detail"> 
      <router-view/>
    </keep-alive>
  </transition>
</template>

<script>
export default {
  name: "RouterTa",
};
</script>

<style>
/* 定义进入和离开时候的过渡状态 */
/* .Router-active-enter-active,
.Router-active-leave-active {
  transition: all 0.5s ease;
  position: absolute;
} */

/* 定义进入过渡的开始状态 和 离开过渡的结束状态 */
/* .Router-active-enter {
  opacity: 0;
  transform: translateX(100%);
}
.Router-active-leave-to {
  opacity: 0;
  transform: translateX(-100%);
} */
</style>